.class public Llt/noframe/gpsfarmguide/states/start_stop_gps_states/StartGps;
.super Ljava/lang/Object;
.source "StartGps.java"

# interfaces
.implements Llt/noframe/gpsfarmguide/states/start_stop_gps_states/StartStopGps;


# direct methods
.method public constructor <init>()V
    .locals 3

    .line 18
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 19
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getStartStopGpsController()Llt/noframe/gpsfarmguide/states/start_stop_gps_states/StartStopGpsController;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/states/start_stop_gps_states/StartStopGpsController;->getButton()Landroid/widget/ImageView;

    move-result-object v0

    const v1, 0x7f080164

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 20
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getStartStopGpsController()Llt/noframe/gpsfarmguide/states/start_stop_gps_states/StartStopGpsController;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/states/start_stop_gps_states/StartStopGpsController;->getText()Landroid/widget/TextView;

    move-result-object v0

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f1101d3

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method


# virtual methods
.method public doAction()V
    .locals 2

    .line 26
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object v0

    new-instance v1, Llt/noframe/gpsfarmguide/states/start_stop_gps_states/StartGps$1;

    invoke-direct {v1, p0}, Llt/noframe/gpsfarmguide/states/start_stop_gps_states/StartGps$1;-><init>(Llt/noframe/gpsfarmguide/states/start_stop_gps_states/StartGps;)V

    invoke-virtual {v0, v1}, Lcom/google/android/gms/maps/GoogleMap;->setOnMyLocationChangeListener(Lcom/google/android/gms/maps/GoogleMap$OnMyLocationChangeListener;)V

    .line 39
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getStartStopGpsController()Llt/noframe/gpsfarmguide/states/start_stop_gps_states/StartStopGpsController;

    move-result-object v0

    new-instance v1, Llt/noframe/gpsfarmguide/states/start_stop_gps_states/StopGps;

    invoke-direct {v1}, Llt/noframe/gpsfarmguide/states/start_stop_gps_states/StopGps;-><init>()V

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/states/start_stop_gps_states/StartStopGpsController;->setState(Llt/noframe/gpsfarmguide/states/start_stop_gps_states/StartStopGps;)V

    return-void
.end method
